Gets the lowest ordinal index of the selected items in the list. Use this property to determine the index of the currently selected item in the list if the list control allows only one selection.
Syntax
publicint getSelectedIndex()
Return Value
The lowest ordinal index of the selected items in the list. The default is -1, which indicates that nothing is selected.